package testsgraphicinterface;

import graphicinterface.WindowShowReviewsFromBook;

import java.util.LinkedList;

import bookworm.Book;
import bookworm.Review;

public class TestInterfaceShowsReviewsFromBook 
{
	public static void main(String args[])
	{
		LinkedList<String> authors = new LinkedList<String>();
		authors.add("stephenie meyer");
		Book book = new Book("the short second life of bree tanner: an eclipse novella (Twilight Saga)", authors, "http://ecx.images-amazon.com/images/I/41Ka5DpsH5L._SL160_.jpg");
		Review review = new Review();
		review.setBookTitle("the short second life of bree tanner: an eclipse novella (Twilight Saga)");
		review.setReviewId(0);
		review.setReviewTitle("Truly a must-bite!");
		review.addNewAuthor("Stephenie Meyer");
		review.addNewTag("horror");
		review.setReviewer("JustPeachy");
		review.setMediumCover("http://ecx.images-amazon.com/images/I/41Ka5DpsH5L._SL160_.jpg");
		review.setAuthors(authors);
		review.setRating(4);
		review.setReviewText("This was a really, really good read. Way too short but I suppose we were lucky to get anything at all as when she started it she only meant to write a few paragraphs. Bree is a way more interesting character than Bella, she had a bit of fight in her which I loved! </p> <p>The way it linked in with Eclipse was great, it was really nice to read even a tiny bit about our fave characters from the Twilight Saga. Mine is Jasper, always hope she might write a book about the beginning of his life as a vampire! </p> <p>The only flaw was I thought because it was a short book she didn't have time to develop the romance between Bree and Diego. I mean they had only known eachother a day and she became obsessed with him pretty quickly.</p> <p>Contrary to what Meyer says in her note at the start of the book, I think the ending was great, I mean we all knew what was coming but finally a loved character is killed off. It adds a little extra to the book, everything doesn't have a happy ending. This only makes the happy endings that do happen all the more appreciated.");
		book.addNewReview(review);
		Review review2 = new Review();
		review2.setBookTitle("the short second life of bree tanner: an eclipse novella (Twilight Saga)");
		review2.setReviewId(1);
		review2.setReviewTitle("Vampires really suck");
		review2.addNewAuthor("Stephenie Meyer");
		review2.addNewTag("horror");
		review2.setReviewer("jaemi");
		review2.setMediumCover("http://ecx.images-amazon.com/images/I/41Ka5DpsH5L._SL160_.jpg");
		review2.setAuthors(authors);
		review2.setRating(0);
		review2.setReviewText("<p>This book sucks and it's a waste of time. It ruined everything about vampires. They DO NOT sparkle, only fairies do. So therefore, Edward must be a fairy. And Jacob Black ruined werewolves. Werewolves are not like how they are in this book. This book has ruined both vampires and werewolves and should be burned, along with the rest of the series. I hate this book and the ones following it in the series with a passion.</p> <p>To anyone who is thinking about reading this, don't. It's a total waste of time and is one of the worst vampire stories I have ever read. If you want a good vampire book, go read A Quick Bite by Lyndsy Sands or some type of Dracula story. All you will get out of Twilight is boredom, fairies, transgenders (Bella), and wanna be werewolves. And plus, Forks, Washington isn't all rainy and crap like in the story. The actual place is actually quite sunny. So this is also a crappy setting. I mean, come on. Anyone who actually likes this book, I shake my head in shame at you for the above reasons.</p>");
		//book.addNewReview(review2);
		
		
		WindowShowReviewsFromBook showReviewsFromBook = new WindowShowReviewsFromBook(book);
		
	}

}
